<?php
class model{
	public function __construct(){
		global $db;
		$this->db=$db;
	}
}